package com.card323.crpg.skill;

import com.card323.crpg.battle.Timing;
import com.card323.crpg.battle.buff.Buff;
import com.card323.crpg.battle.buff.TurnsBuff;
import com.card323.crpg.effect.AddBuffEffect;
import com.card323.crpg.skill.battle.BattleEvent;
import com.card323.crpg.skill.battle.BattleEventHandler;

public class HardWillSkill extends SelfTargetSkill {

	public HardWillSkill() {
		TurnsBuff tb=new TurnsBuff(this,3);
		_active_ap_cost.set_action_point(1,0,0,0,0,0);
		tb.add_battle_listener(Timing.BeAttacked, new BattleEventHandler(){

			public void handle_battle_event(Buff buff, BattleEvent e) {
				buff._dmg_fix+=1;
				
			}});
		_effects.add(new AddBuffEffect(tb));
		this.set_name("坚定意志");
		this.set_info("三回合内,每次受到伤害增加1攻击伤害");
	}

}
